package cn.com.api.service.impl.base;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_member_wemedia;
import cn.com.api.mapper.ApiT_member_wemediaMapper;

/**
 * 
 **/
@Service
public class T_member_wemediaServiceImplBase {
	@Autowired
	private ApiT_member_wemediaMapper apiT_member_wemediaMapper;
    
    // 根据id获取
	public ApiT_member_wemedia findT_member_wemediaById(Integer id){
		ApiT_member_wemedia t_member_wemedia = apiT_member_wemediaMapper.findT_member_wemediaById( id );
		return t_member_wemedia;
	}
    
    //查看数据集
	public List<ApiT_member_wemedia> findT_member_wemedias(){
        List<ApiT_member_wemedia> t_member_wemedias = apiT_member_wemediaMapper.findT_member_wemedias();
		return t_member_wemedias;
    }
    
	// 添加
	public int insertT_member_wemedia(ApiT_member_wemedia t_member_wemedia){
		int ret_I= apiT_member_wemediaMapper.insertT_member_wemedia(t_member_wemedia);
		return ret_I;
	}

	// 修改
	public int updateT_member_wemedia(ApiT_member_wemedia t_member_wemedia){
		int ret_I= apiT_member_wemediaMapper.updateT_member_wemedia(t_member_wemedia);
		return ret_I;
	}
	
    // 删除
	public int deleteT_member_wemedia(Integer id){
		int ret_I= apiT_member_wemediaMapper.deleteT_member_wemedia( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
	  // 根据userId获取
		public ApiT_member_wemedia findT_member_wemediaByUserId(Integer userId){
			ApiT_member_wemedia t_member_wemedia = apiT_member_wemediaMapper.findT_member_wemediaByUserId( userId );
			return t_member_wemedia;
		}   
    
    
}


